/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 全局样式 */
body {
    font-family: "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

a {
    text-decoration: none;
    color: #0066cc;
    transition: color 0.3s;
}

a:hover {
    color: #ff6600;
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 顶部通栏 */
.site-header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.top-bar {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
    padding: 15px 0;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    width: 80px;
    height: 80px;
}

.title-group {
    line-height: 1.2;
}

.site-title {
    font-size: 28px;
    color: #003d8f;
    font-weight: bold;
    margin-bottom: 5px;
}

.site-subtitle {
    font-size: 14px;
    color: #666;
    text-transform: uppercase;
}

/* 快捷链接 */
.quick-links {
    display: flex;
    gap: 20px;
}

.quick-link {
    font-size: 13px;
    color: #666;
    padding: 5px 10px;
    border-radius: 3px;
}

.quick-link:hover {
    background-color: #e8e8e8;
}

/* 主导航 */
.main-nav {
    background: linear-gradient(135deg, #003d8f 0%, #0055b8 100%);
    position: relative;
}

.nav-list {
    display: flex;
    justify-content: space-between;
}

.nav-item {
    flex: 1;
    position: relative;
    text-align: center;
}

.nav-item > a {
    display: block;
    padding: 15px 10px;
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-item:last-child > a {
    border-right: none;
}

.nav-item > a:hover,
.nav-item.active > a {
    background-color: #ff6600;
    color: #fff;
}

/* 下拉菜单 */
.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 200px;
    background-color: #fff;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

.nav-item:hover .dropdown {
    display: block;
}

.dropdown li a {
    display: block;
    padding: 10px 15px;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}

.dropdown li:last-child a {
    border-bottom: none;
}

.dropdown li a:hover {
    background-color: #f8f9fa;
    color: #003d8f;
}

/* 轮播区 */
.banner-section {
    margin-bottom: 30px;
}

.carousel {
    position: relative;
    width: 100%;
    height: 450px;
    overflow: hidden;
}

.carousel-inner {
    width: 100%;
    height: 100%;
}

.carousel-item {
    display: none;
    width: 100%;
    height: 100%;
    position: relative;
}

.carousel-item.active {
    display: block;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-caption {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: #fff;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 20px 40px;
    border-radius: 5px;
    backdrop-filter: blur(5px);
}

.carousel-caption h2 {
    font-size: 32px;
    margin-bottom: 10px;
}

.carousel-caption p {
    font-size: 18px;
}

/* 轮播指示器 */
.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s;
}

.indicator.active,
.indicator:hover {
    background-color: #fff;
}

/* 轮播控制按钮 */
.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    width: 50px;
    height: 50px;
    font-size: 24px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.carousel-control:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.carousel-control.prev {
    left: 20px;
}

.carousel-control.next {
    right: 20px;
}

/* 内容区域 */
.content-wrapper {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
}

.main-content {
    flex: 1;
}

.sidebar {
    width: 300px;
    flex-shrink: 0;
}

/* 模块通用样式 */
.module {
    background-color: #fff;
    margin-bottom: 30px;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.module-header {
    background: linear-gradient(135deg, #003d8f 0%, #0055b8 100%);
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.module-title {
    font-size: 18px;
    color: #fff;
    font-weight: bold;
}

/* 标签页 */
.tabs {
    display: flex;
    gap: 20px;
    flex: 1;
    margin-left: 30px;
}

.tab {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    padding: 5px 10px;
    border-radius: 3px;
}

.tab.active,
.tab:hover {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.2);
}

.more-link {
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
}

.more-link:hover {
    color: #fff;
}

/* 新闻列表 */
.news-list {
    padding: 20px;
}

.news-item {
    display: flex;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px dashed #e0e0e0;
}

.news-item:last-child {
    border-bottom: none;
}

.news-date {
    flex-shrink: 0;
    width: 50px;
    text-align: center;
    background-color: #f8f9fa;
    border-radius: 3px;
    padding: 5px;
}

.news-date .month {
    font-size: 13px;
    color: #666;
}

.news-title {
    flex: 1;
    font-size: 14px;
    font-weight: normal;
    line-height: 1.8;
}

.news-title a {
    color: #333;
}

.news-title a:hover {
    color: #ff6600;
}

/* 学术讲座 */
.lecture-list {
    padding: 20px;
}

.lecture-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px dashed #e0e0e0;
}

.lecture-item:last-child {
    border-bottom: none;
}

.lecture-date {
    flex-shrink: 0;
    width: 50px;
    text-align: center;
    color: #666;
    font-size: 13px;
}

.lecture-info {
    flex: 1;
}

.lecture-title {
    font-size: 14px;
    font-weight: normal;
    margin-bottom: 5px;
}

.lecture-title a {
    color: #333;
}

.lecture-title a:hover {
    color: #ff6600;
}

.lecture-speaker {
    font-size: 13px;
    color: #999;
}

/* 专题网站 */
.special-topics {
    padding: 20px;
}

.topics-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.topics-list li a {
    display: block;
    padding: 10px;
    text-align: center;
    background-color: #f8f9fa;
    border-radius: 3px;
    color: #333;
    font-size: 13px;
}

.topics-list li a:hover {
    background-color: #003d8f;
    color: #fff;
}

/* 侧边栏小部件 */
.widget {
    background-color: #fff;
    margin-bottom: 20px;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.widget-title {
    background: linear-gradient(135deg, #003d8f 0%, #0055b8 100%);
    color: #fff;
    font-size: 16px;
    padding: 12px 15px;
}

/* 快速通道 */
.access-list {
    padding: 15px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.access-link {
    display: block;
    padding: 10px;
    text-align: center;
    background-color: #f8f9fa;
    border-radius: 3px;
    color: #333;
    font-size: 13px;
}

.access-link:hover {
    background-color: #003d8f;
    color: #fff;
}

/* 校园风光 */
.gallery {
    padding: 15px;
}

.gallery-item {
    margin-bottom: 10px;
}

.gallery-item:last-child {
    margin-bottom: 0;
}

.gallery-item img {
    border-radius: 3px;
}

/* 数字南航 */
.stats-list {
    padding: 20px 15px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px dashed #e0e0e0;
}

.stat-item:last-child {
    border-bottom: none;
}

.stat-item dt {
    font-size: 14px;
    color: #666;
}

.stat-number {
    font-size: 24px;
    font-weight: bold;
    color: #003d8f;
}

.stat-number span {
    font-size: 14px;
    font-weight: normal;
}

/* 媒体南航 */
.media-list {
    padding: 15px;
}

.media-item {
    padding: 12px 0;
    border-bottom: 1px dashed #e0e0e0;
}

.media-item:last-child {
    border-bottom: none;
}

.media-title {
    font-size: 13px;
    font-weight: normal;
    margin-bottom: 5px;
}

.media-title a {
    color: #333;
}

.media-title a:hover {
    color: #ff6600;
}

.media-item time {
    font-size: 12px;
    color: #999;
}

/* 院系导航 */
.departments-section,
.links-section {
    background-color: #fff;
    padding: 30px 0;
    margin-bottom: 30px;
}

.section-title {
    font-size: 22px;
    color: #003d8f;
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #ff6600;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background-color: #003d8f;
}

.departments-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.departments-grid li a {
    display: block;
    padding: 15px;
    text-align: center;
    background-color: #f8f9fa;
    border-radius: 5px;
    color: #333;
    border: 1px solid transparent;
    transition: all 0.3s;
}

.departments-grid li a:hover {
    background-color: #003d8f;
    color: #fff;
    border-color: #003d8f;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 61, 143, 0.2);
}

/* 友情链接 */
.links-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.links-list li a {
    color: #666;
    font-size: 14px;
    padding: 5px 15px;
    border-radius: 3px;
    border: 1px solid #e0e0e0;
}

.links-list li a:hover {
    background-color: #f8f9fa;
    color: #003d8f;
    border-color: #003d8f;
}

/* 页脚 */
.site-footer {
    background-color: #2c3e50;
    color: #bbb;
    padding: 40px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #444;
}

.footer-column {
    flex: 1;
}

.footer-title {
    color: #fff;
    font-size: 16px;
    margin-bottom: 15px;
}

.contact-info address {
    font-style: normal;
    line-height: 2;
}

.contact-info p {
    font-size: 13px;
}

.footer-links ul li {
    margin-bottom: 8px;
}

.footer-links a {
    color: #bbb;
    font-size: 13px;
}

.footer-links a:hover {
    color: #fff;
}

.qrcode {
    text-align: center;
}

.qrcode img {
    width: 120px;
    height: 120px;
    margin: 0 auto 10px;
    background-color: #fff;
    padding: 5px;
    border-radius: 5px;
}

.qrcode p {
    font-size: 13px;
}

/* 版权信息 */
.copyright {
    text-align: center;
    font-size: 12px;
    line-height: 1.8;
}

.copyright p {
    color: #888;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .departments-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .content-wrapper {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
    }
    
    .departments-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .nav-list {
        flex-wrap: wrap;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 30px;
    }
}
